package com.staticd;

public class Test {
	private static SpeechEntity entity;

	public static void main(String str[]) {
		entity = new SpeechEntity(11, "tom11");
		System.out.println(entity.getAge() + "," + entity.getName());
		entity = null;
		entity = new SpeechEntity(111, "tom111");
		System.out.println(entity.getAge() + "," + entity.getName());
		
		System.out.println(fb(6));
		
	
	}
	
	// [（1＋√5）/2]^n /√5 － [（1－√5）/2]^n /√5
	private static int fb(int n){
		// 1 1 2 3 5 8 13 21 34 55 89 144 233 377
		int f=(int) (1/Math.sqrt(5)*(Math.pow((Math.sqrt(5)+1)/2, n)-Math.pow((1-Math.sqrt(5))/2, n)));
		return f;

	}

}
